project(Broadcase)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
find_package(cppzmq REQUIRED)
find_package(msgpack-cxx REQUIRED)
find_package(spdlog REQUIRED)
find_package(fmt REQUIRED)

link_libraries(cppzmq ${spdlog_LIBRARIES} fmt ${msgpack-cxx_LIBRARIES})

add_executable(test_ClientPub src/ClientPub.cpp run/test_ClientPub.cpp)
add_executable(test_ClientSub src/ClientSub.cpp run/test_ClientSub.cpp)

add_library(ClientSub src/ClientSub.cpp)
add_library(ClientPub src/ClientPub.cpp)
